#include "dialog.h"
#include "ui_dialog.h"

Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Dialog)
{
    ui->setupUi(this);
//    QLabel* label = new QLabel("这是一个对话框", this);
//    QPushButton* button = new QPushButton("退出", this);
//    QVBoxLayout* layout = new QVBoxLayout();
//    layout->addWidget(label);
//    layout->addWidget(button);
//    this->setLayout(layout);

//    connect(button, &QPushButton::clicked, this, &Dialog::handle);


}

Dialog::~Dialog()
{
    delete ui;
}

void Dialog::handle()
{
    this->close();
}
